#include <hxcpp.h>

#ifndef INCLUDED_JOutput
#include <JOutput.h>
#endif
#ifndef INCLUDED_JPrintStream
#include <JPrintStream.h>
#endif
#ifndef INCLUDED_JSystem
#include <JSystem.h>
#endif
#ifndef INCLUDED_haxe_Public
#include <haxe/Public.h>
#endif

Void JSystem_obj::__construct()
{
	return null();
}

JSystem_obj::~JSystem_obj() { }

Dynamic JSystem_obj::__CreateEmpty() { return  new JSystem_obj; }
hx::ObjectPtr< JSystem_obj > JSystem_obj::__new()
{  hx::ObjectPtr< JSystem_obj > result = new JSystem_obj();
	result->__construct();
	return result;}

Dynamic JSystem_obj::__Create(hx::DynamicArray inArgs)
{  hx::ObjectPtr< JSystem_obj > result = new JSystem_obj();
	result->__construct();
	return result;}

hx::Object *JSystem_obj::__ToInterface(const type_info &inType) {
	if (inType==typeid( ::haxe::Public_obj)) return operator ::haxe::Public_obj *();
	return super::__ToInterface(inType);
}

::JPrintStream JSystem_obj::out;

Void JSystem_obj::init( ){
{
		HX_SOURCE_PUSH("JSystem_obj::init")
		HX_SOURCE_POS("Source/JSystem.hx",29)
		::JSystem_obj::out = ::JOutput_obj::__new();
	}
return null();
}


STATIC_HX_DEFINE_DYNAMIC_FUNC0(JSystem_obj,init,(void))


JSystem_obj::JSystem_obj()
{
}

void JSystem_obj::__Mark(HX_MARK_PARAMS)
{
	HX_MARK_BEGIN_CLASS(JSystem);
	HX_MARK_END_CLASS();
}

void JSystem_obj::__Visit(HX_VISIT_PARAMS)
{
}

Dynamic JSystem_obj::__Field(const ::String &inName,bool inCallProp)
{
	switch(inName.length) {
	case 3:
		if (HX_FIELD_EQ(inName,"out") ) { return out; }
		break;
	case 4:
		if (HX_FIELD_EQ(inName,"init") ) { return init_dyn(); }
	}
	return super::__Field(inName,inCallProp);
}

Dynamic JSystem_obj::__SetField(const ::String &inName,const Dynamic &inValue,bool inCallProp)
{
	switch(inName.length) {
	case 3:
		if (HX_FIELD_EQ(inName,"out") ) { out=inValue.Cast< ::JPrintStream >(); return inValue; }
	}
	return super::__SetField(inName,inValue,inCallProp);
}

void JSystem_obj::__GetFields(Array< ::String> &outFields)
{
	super::__GetFields(outFields);
};

static ::String sStaticFields[] = {
	HX_CSTRING("out"),
	HX_CSTRING("init"),
	String(null()) };

static ::String sMemberFields[] = {
	String(null()) };

static void sMarkStatics(HX_MARK_PARAMS) {
	HX_MARK_MEMBER_NAME(JSystem_obj::out,"out");
};

static void sVisitStatics(HX_VISIT_PARAMS) {
	HX_VISIT_MEMBER_NAME(JSystem_obj::out,"out");
};

Class JSystem_obj::__mClass;

void JSystem_obj::__register()
{
	Static(__mClass) = hx::RegisterClass(HX_CSTRING("JSystem"), hx::TCanCast< JSystem_obj> ,sStaticFields,sMemberFields,
	&__CreateEmpty, &__Create,
	&super::__SGetClass(), 0, sMarkStatics, sVisitStatics);
}

void JSystem_obj::__boot()
{
	hx::Static(out);
}

